Component({
  properties: {},
  data: {
    paddingBottom: 0,
  },
  methods: {
    submit() {
      this.triggerEvent("submit")
    },
    cancel() {
      this.triggerEvent("cancel")
    }
  },
  lifetimes: {
    attached() {
      const info = wx.getSystemInfoSync();
      this.setData({
        paddingBottom: Math.max(info.screenHeight - info.safeArea.bottom, 10),
      })
    }
  }
});
